package edu.hzit.data.service.impl;

import edu.hzit.data.entity.Memorandum;
import edu.hzit.data.mapper.MemorandumMapper;
import edu.hzit.data.service.MemorandumService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MemorandumServiceImpl implements MemorandumService {
    @Resource
    private MemorandumMapper memorandumMapper;
    @Override
    public int insert(Memorandum memorandum) {
        return memorandumMapper.insert(memorandum);
    }

    @Override
    public List<Memorandum> loadList() {
        return memorandumMapper.loadList();
    }

    @Override
    public Memorandum selectById(int bId) {
        return memorandumMapper.selectById(bId);
    }

    @Override
    public int delete(int bId) {
        return memorandumMapper.delete(bId);
    }

    @Override
    public int update(Memorandum memorandum) {
        return memorandumMapper.update(memorandum);
    }

    @Override
    public List<Memorandum> fuzzySearch(String content) {
        return memorandumMapper.fuzzySearch(content);
    }

}
